package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 销售报价单与销售订单关联关系对象 erp_sale_and_quotation
 *
 * @author wutao
 * @date 2024-07-09
 */
@TableName("erp_sale_and_quotation")
@ApiModel(value = "erp_sale_and_quotation对象", description = "销售报价单与销售订单关联关系")
@Data
public class SaleAndQuotationEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 销售订单与报价单关系表主键id
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 订单id
     */
    @ApiModelProperty("订单id")
    @TableField("sale_order_id")
    @Excel(name = "订单id")
    private String saleOrderId;

    /**
     * 报价单id
     */
    @ApiModelProperty("报价单id")
    @TableField("quotation_id")
    @Excel(name = "报价单id")
    private String quotationId;

    /**
     * 是否再用(1有效2无效)
     */
    @ApiModelProperty("是否再用(1有效2无效)")
    @TableField("is_used")
    @Excel(name = "是否再用(1有效2无效)")
    private String isUsed;

    /**
     * 所属公司
     */
    @ApiModelProperty("所属公司")
    @TableField("dept_id")
    @Excel(name = "所属公司")
    private String deptId;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setSaleOrderId(String saleOrderId) {
        this.saleOrderId = saleOrderId;
    }

    public String getSaleOrderId() {
        return saleOrderId;
    }

    public void setQuotationId(String quotationId) {
        this.quotationId = quotationId;
    }

    public String getQuotationId() {
        return quotationId;
    }

    public void setIsUsed(String isUsed) {
        this.isUsed = isUsed;
    }

    public String getIsUsed() {
        return isUsed;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptId() {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("saleOrderId", getSaleOrderId())
                .append("quotationId", getQuotationId())
                .append("isUsed", getIsUsed())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("deptId", getDeptId())
                .toString();
    }
}
